static private JsonTransformer factory ( Object jsonObject ) throws InvalidTransformerException { if ( jsonObject instanceof JSONObject ) { return factory ( ( JSONObject ) jsonObject ) ; } else if ( jsonObject instanceof JSONArray ) { return factory ( ( JSONArray ) jsonObject ) ; } else if ( jsonObject instanceof String ) { return factoryAction ( ( String ) jsonObject ) ; } throw new InvalidTransformerException ( "Not supported transformer type: " + jsonObject ) ; }
Convenient private method