if ( getHelper().getOlap4jServers().contains( catalogName ) ) {
return makeOlap4jConnection( catalogName );
}
final StringBuilder roleName = new StringBuilder();
Entry roleMonikor = null;
if ( this.role != null ) {
// We must use a custom role implementation.
// Register the instance with the mondrian server.
roleMonikor = getServer().getLockBox().register( this.role );
roleName.append( roleMonikor.getMoniker() );
} else {
final IConnectionUserRoleMapper mapper =
PentahoSystem.get(
IConnectionUserRoleMapper.class,
MDXConnection.MDX_CONNECTION_MAPPER_KEY,