}
@Override
public InvoiceThumbnail convert(String sId, Class<? extends InvoiceThumbnail> invThumbClass, Collection<ValidationError> conversionErrors) {
Log.out.debug("InvoiceThumbnail convert("+sId+")");
AtrilSession oSes = null;
InvoiceThumbnail oThn = null;
try {
oSes = DAO.getAdminSession("InvoiceThumbnailTypeConverter");
oThn = new InvoiceThumbnail(oSes.getDms(), sId);
} catch (ElementNotFoundException enfe) {
Log.out.error("Thumbnail "+sId+" not found "+enfe.getMessage(), enfe);
} catch (Exception xcpt) {
Log.out.error(xcpt.getClass().getName()+" "+xcpt.getMessage(), xcpt);
} finally {
if (oSes!=null) {
if (oSes.isConnected()) oSes.disconnect();
if (oSes.isOpen()) oSes.close();
}
}
return oThn;
}