final SqlBuilder sqlBuilder = Factory.getSqlBuilder();
sqlResource = new SqlResourceImpl(resName, definition, Factory.getSqlResourceMetaData(
resName, definition, sqlBuilder), sqlBuilder, new ArrayList<Trigger>());
sqlResources.put(resName, sqlResource);
} catch (final JAXBException exception) {
throw new SqlResourceFactoryException("Error unmarshalling SQL Resource "
+ getSqlResourceFileName(resName) + " -- " + exception.getMessage());
} finally {
if (inputStream != null) {
try {
inputStream.close();