JsonObjectBuilder builder = Json.createObjectBuilder();
JsonObject components = collector.fetchMethods(applicationName, beanName);
if (components == null) {
return builder.addNull("-- no methods --").build();
}
Set<Map.Entry<String, JsonValue>> entrySet = components.entrySet();
for (Map.Entry<String, JsonValue> component : entrySet) {
String methodName = component.getKey();
JsonObject methodStatistics = collector.fetchMethodStatistics(applicationName, beanName, methodName);
if (beanName == null || methodStatistics == null) {
LOG.info("!!!NULL -> Beanname: " + beanName + " -> " + methodStatistics);