contextObj.put( "user", getUserSession().getName() );
contextObj.put( "locale", CdfEngine.getEnvironment().getLocale() );
buildContextPaths( contextObj, path, parameters );
SecurityParameterProvider securityParams = new SecurityParameterProvider( getUserSession() );
contextObj.put( "roles", securityParams.getParameter( "principalRoles" ) );
if ( APPLY_LEGACY_DASHBOARD_CONTEXT ) {
buildLegacyStructure( contextObj, path, securityParams );
}