public static List < MgmtTarget > toResponse ( final Collection < Target > targets ) { if ( targets == null ) { return Collections . emptyList ( ) ; } return new ResponseList <> ( targets . stream ( ) . map ( MgmtTargetMapper :: toResponse ) . collect ( Collectors . toList ( ) ) ) ; }
Create a response for targets .