}
return instance;
}
public Object getField(String name) throws Exception {
final UserProfile userProfile = BBMPlatformNamespace.getInstance().getContext().getUserProfile();
super._presence = userProfile;
if(name.equals(LocationNamespace.NAME)) {
ProfileLocation location = userProfile.getProfileLocation();
if(location == null) {
return UNDEFINED;
} else {
return new LocationNamespace(location);
}