public static String [ ] roles ( final Role ... roles ) { final List < String > names = new ArrayList <> ( roles . length ) ; for ( Role role : roles ) { names . add ( role . getName ( ) ) ; } return names . toArray ( new String [ names . size ( ) ] ) ; }
Converts the roles into a String array .