if (sqlResource == null) {
final InputStream inputStream = getInputStream(resName);
JAXBContext context;
try {
context = JAXBContext.newInstance(ObjectFactory.class);
final Unmarshaller unmarshaller = context.createUnmarshaller();
unmarshaller.setSchema(null);
final SqlResourceDefinition definition = ((JAXBElement<SqlResourceDefinition>) unmarshaller
.unmarshal(inputStream)).getValue();
final SqlBuilder sqlBuilder = Factory.getSqlBuilder();
sqlResource = new SqlResourceImpl(resName, definition, Factory.getSqlResourceMetaData(
resName, definition, sqlBuilder), sqlBuilder, new ArrayList<Trigger>());
sqlResources.put(resName, sqlResource);