org_apache_struts2_rest_DefaultContentTypeHandlerManagerTest_java
org.apache.struts2.rest.DefaultContentTypeHandlerManager
@Inject
    public void setContainer(Container container) {
        Set<String> names = container.getInstanceNames(ContentTypeHandler.class);
        for (String name : names) {
            ContentTypeHandler handler = container.getInstance(ContentTypeHandler.class, name);
            if (handler.getExtension() != null) {
                String overrideName = container.getInstance(String.class, "struts.rest.handlerOverride." + handler.getExtension());
                if (overrideName != null) {
                    if (this.handlersByExtension.containsKey(handler.getExtension())) continue;
                    handler = container.getInstance(ContentTypeHandler.class, overrideName);
                }
                this.handlersByExtension.put(handler.getExtension(), handler);
            }
            if (handler.getContentType() == null) continue;
            String typeOnly = handler.getContentType();
            int index = handler.getContentType().indexOf(59);
            if (index != -1) {
                typeOnly = handler.getContentType().substring(0, index).trim();
            }
            this.handlersByContentType.put(typeOnly, handler);
        }
    }
 -> java.util.Set.add(java.lang.Object): boolean -> java.util.Set.iterator(): java.util.Iterator -> java.util.Iterator.hasNext(): boolean -> java.util.Iterator.next(): java.lang.Object -> java.lang.String.startsWith(java.lang.String): boolean -> java.lang.String.indexOf(int): int -> java.lang.String.substring(int,int): java.lang.String -> java.lang.String.trim(): java.lang.String -> java.util.Map.put(java.lang.Object,java.lang.Object): java.lang.Object -> java.util.Iterator.hasNext(): boolean
 [CALL] [CALL] -> java.util.Set.add(java.lang.Object): boolean [EXIT] -> java.util.Set.iterator(): java.util.Iterator -> java.util.Iterator.hasNext(): boolean -> java.util.Iterator.next(): java.lang.Object [CALL] -> java.lang.String.startsWith(java.lang.String): boolean [EXIT] [CALL] [EXIT] [CALL] [EXIT] [CALL] [EXIT] [CALL] [EXIT] -> java.lang.String.indexOf(int): int [CALL] [EXIT] -> java.lang.String.substring(int,int): java.lang.String -> java.lang.String.trim(): java.lang.String -> java.util.Map.put(java.lang.Object,java.lang.Object): java.lang.Object -> java.util.Iterator.hasNext(): boolean [EXIT]