public static Subject populateSubject ( Subject subject , Collection < IAutoCredentials > autos , Map < String , String > credentials ) { try { if ( subject == null ) { subject = new Subject ( ) ; } for ( IAutoCredentials autoCred : autos ) { autoCred . populateSubject ( subject , credentials ) ; } return subject ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } }
Populate a subject from credentials using the IAutoCredentials .