Source:
private java.util.Map < java.lang.String , java.lang.Object > buildResponse ( org.ovirt.engine.core.sso.utils.SSOSession ssoSession , java.lang.String password ) { java.util.Map < java.lang.String , java.lang.Object > payload = new java.util.HashMap < > ( ) ; payload.put ( SSOConstants.JSON_ACTIVE , ssoSession.isActive ( ) ) ; payload.put ( SSOConstants.JSON_TOKEN_TYPE , "bearer" ) ; payload.put ( SSOConstants.JSON_CLIENT_ID , ssoSession.getClientId ( ) ) ; payload.put ( SSOConstants.JSON_USER_ID , java.lang.String.format ( "%s@%s" , ssoSession.getUserId ( ) , ssoSession.getProfile ( ) ) ) ; payload.put ( SSOConstants.JSON_SCOPE , ( org.apache.commons.lang.StringUtils.isEmpty ( ssoSession.getScope ( ) ) ? "" : ssoSession.getScope ( ) ) ) ; payload.put ( SSOConstants.JSON_EXPIRES_IN , ssoSession.getValidTo ( ) ) ; java.util.Map < java.lang.String , java.lang.Object > ovirt = new java.util.HashMap < > ( ) ; ovirt.put ( "version" , SSOConstants.OVIRT_SSO_VERSION ) ; ovirt.put ( "principal_id" , ssoSession.getPrincipalRecord ( ) . get ( Authz.PrincipalRecord.ID ) ) ; ovirt.put ( "email" , ssoSession.getPrincipalRecord ( ) . get ( Authz.PrincipalRecord.EMAIL ) ) ; ovirt.put ( "group_ids" , ssoSession.getPrincipalRecord ( ) . < java.util.Collection > get ( Authz.PrincipalRecord.GROUPS , java.util.Collections.< org.ovirt.engine.api.extensions.ExtMap > emptyList ( ) ) ) ; if ( password != null ) { ovirt.put ( "password" , password ) ; } ovirt.put ( "capability_credentials_change" , ssoContext.getSsoProfilesSupportingPasswdChange ( ) . contains ( ssoSession.getProfile ( ) ) ) ; payload.put ( "ovirt" , ovirt ) ; return payload ; }

Target:
private java.util.Map < java.lang.String , java.lang.Object > buildResponse ( org.ovirt.engine.core.sso.utils.SsoSession ssoSession , java.lang.String password ) { java.util.Map < java.lang.String , java.lang.Object > payload = new java.util.HashMap < > ( ) ; payload.put ( SsoConstants.JSON_ACTIVE , ssoSession.isActive ( ) ) ; payload.put ( SsoConstants.JSON_TOKEN_TYPE , "bearer" ) ; payload.put ( SsoConstants.JSON_CLIENT_ID , ssoSession.getClientId ( ) ) ; payload.put ( SsoConstants.JSON_USER_ID , java.lang.String.format ( "%s@%s" , ssoSession.getUserId ( ) , ssoSession.getProfile ( ) ) ) ; payload.put ( SsoConstants.JSON_SCOPE , ( org.apache.commons.lang.StringUtils.isEmpty ( ssoSession.getScope ( ) ) ? "" : ssoSession.getScope ( ) ) ) ; payload.put ( SsoConstants.JSON_EXPIRES_IN , ssoSession.getValidTo ( ) ) ; java.util.Map < java.lang.String , java.lang.Object > ovirt = new java.util.HashMap < > ( ) ; ovirt.put ( "version" , SsoConstants.OVIRT_SSO_VERSION ) ; ovirt.put ( "principal_id" , ssoSession.getPrincipalRecord ( ) . get ( Authz.PrincipalRecord.ID ) ) ; ovirt.put ( "email" , ssoSession.getPrincipalRecord ( ) . get ( Authz.PrincipalRecord.EMAIL ) ) ; ovirt.put ( "group_ids" , ssoSession.getPrincipalRecord ( ) . < java.util.Collection > get ( Authz.PrincipalRecord.GROUPS , java.util.Collections.< org.ovirt.engine.api.extensions.ExtMap > emptyList ( ) ) ) ; if ( password != null ) { ovirt.put ( "password" , password ) ; } ovirt.put ( "capability_credentials_change" , ssoContext.getSsoProfilesSupportingPasswdChange ( ) . contains ( ssoSession.getProfile ( ) ) ) ; payload.put ( "ovirt" , ovirt ) ; return payload ; }