schema = (String)getUserProfile().getUserAttribute(attrname);
Assert.assertNotNull(schema, "Impossible to retrive the value of attribute [" + attrname + "] form user profile");
dataSource.setJndi( dataSource.getJndi() + schema);
logger.debug("Target schema for datasource [" + dataSource.getLabel() + "] is [" + dataSource.getJndi()+ "]");
} catch (Throwable t) {
throw new SpagoBIEngineRuntimeException("Impossible to retrive target schema for datasource [" + dataSource.getLabel() + "]", t);
}
logger.debug("Target schema for datasource [" + dataSource.getLabel() + "] retrieved succesfully");
}
return dataSource;