}
Endpoint ep = EndpointFactory.getEndpointUnchecked(EndpointFactory.SERVER_SMARTCLOUD);
if(ep!=null) {
if(ep.isAuthenticated()){
// Find the SmartCloud id
GenericService service = new GenericService(ep);
// service.get("/manage/oauth/getUserIdentity",null, "json");
//
//TODO - Padraic
HandlerJson json= new HandlerJson();
Object result = service.get("/manage/oauth/getUserIdentity", json).getData();
if(result instanceof JsonJavaObject){
JsonNavigator jsonUtil = new JsonNavigator(result);
PeopleData data = new PeopleData();
data.smartCloudSubscriberId = jsonUtil.stringValue("subscriberid");
data.smartCloudSubscriberEmail=jsonUtil.stringValue("email");