String xml;
try {
xml = DOMValidateDTD.validate(file, Info.getApplicationPath() + "/config/validator/environment.dtd");
} catch (IOException ex) {
throw new DaoLayerException(ex.getMessage(), ex);
}
Environment pojo = null;
try {
pojo = (Environment) xstream.fromXML(xml);
} catch (XStreamException e) {
throw new DaoLayerException("XML parsing error. Readed XML is \n" + xml, e);
}
EnvironmentLogic envLogic = Freedomotic.INJECTOR.getInstance(EnvironmentLogic.class);
if (pojo == null) {