Locale locale = language != null && !language.isEmpty() ? new Locale(
language) : Locale.ENGLISH;
SocialWorkspace socialWorkspace = socialWorkspaceService.getDetachedSocialWorkspace(
session, new PathRef(contextPath));
Map<String, Serializable> props = new HashMap<String, Serializable>();
props.put(LOCALE_PROPERTY, locale);
props.put(SOCIAL_WORKSPACE_ID_PROPERTY, socialWorkspace.getId());
props.put(REPOSITORY_NAME_PROPERTY,