private static JSONObject parseStencilSet(StencilSet stencilSet) throws JSONException {
        if (stencilSet != null) {
            JSONObject stencilSetObject = new JSONObject();

            stencilSetObject.put("url",
                                 stencilSet.getUrl().toString());
            stencilSetObject.put("namespace",
                                 stencilSet.getNamespace().toString());

            return stencilSetObject;
        }

        return new JSONObject();
    }
private static JSONObject parseStencilSet ( StencilSet stencilSet ) throws JSONException { if ( stencilSet != null ) { JSONObject stencilSetObject = new JSONObject ( ) ; stencilSetObject . put ( "url" , stencilSet . getUrl ( ) . toString ( ) ) ; stencilSetObject . put ( "namespace" , stencilSet . getNamespace ( ) . toString ( ) ) ; return stencilSetObject ; } return new JSONObject ( ) ; }
Delivers the correct JSON Object for the Stencilset

@param stencilSet
@throws org.json.JSONException