private Person getPerson(Service36400242Form form) { final IPrincipal principal = form.getPguAssertion().getPrincipal(); Assert.notNull(principal, "Principal is null."); final Long userId = principal.getUserId(); Assert.notNull(userId, "userId is null"); final String authToken = principal.getAuthToken(); Assert.notNull(authToken, "authToken is null"); PersonalDataService personalDataService = ServiceClientFactory.getServiceClient( UDDINames.NAME_PO_PERSONALDATA_SERVICE, PersonalDataService.class); final GetPersonalDataRequest personalDataRequest = new GetPersonalDataRequest(); personalDataRequest.setAuthToken(authToken); personalDataRequest.setUserId(userId); final GetPersonalDataResponse personalDataResponse = personalDataService.getPersonalData(personalDataRequest); if (personalDataResponse.getError() != null && personalDataResponse.getError().getErrorCode() != 0) { logger.error( personalDataResponse.getError().getErrorMessage(), personalDataResponse.getError()); return null; } return personalDataResponse.getPerson(); }