try {
initContext = new InitialContext();
basePath = (String) initContext.lookup(BASE_PATH_JNDI_NAME);
if (basePath == null) {
throw new SetupException(messageJndiNameNotBound);
}
} catch (NameNotFoundException e) {
throw new SetupException(messageJndiNameNotBound, e);
} catch (NamingException e) {
throw new SetupException(messageJndiNameNotBound, e);
} finally {
if (initContext != null) {
try {
initContext.close();
} catch (NamingException e) {