public List<String> findDeprecatedComponents() throws Exception {
  List<String> answer=new ArrayList<>();
  Set<ObjectName> camels=findCamelContexts();
  for (  ObjectName on : camels) {
    List<String> names=findComponentNames(on);
    for (    String name : names) {
      if (isDeprecatedComponent(name)) {
        answer.add(name);
      }
    }
  }
  return answer;
}

public List < String > findDeprecatedComponents ( ) throws Exception { List < String > answer = new ArrayList < > ( ) ; Set < ObjectName > camels = findCamelContexts ( ) ; for ( ObjectName on : camels ) { List < String > names = findComponentNames ( on ) ; for ( String name : names ) { if ( isDeprecatedComponent ( name ) ) { answer . add ( name ) ; } } } return answer ; }
checks the running jvm for all camel applications running , and returns a list of camel components in use , that has been deprecated .
