PlatypusHttpResponseWriter.writeJsonResponse(JsonUtils.as(uploadedLocations.toArray(new StringBuilder[]{})).toString(), response, null); return true; } else {
StringBuilder json = JsonUtils.o(new StringBuilder(RemoteModulesProxy.STRUCTURE_PROP_NAME), JsonUtils.as(structure.toArray(new String[]{})), new StringBuilder(RemoteModulesProxy.CLIENT_DEPENDENCIES_PROP_NAME), JsonUtils.as(aStructure.getClientDependencies().toArray(new String[]{})), new StringBuilder(RemoteModulesProxy.QUERY_DEPENDENCIES_PROP_NAME), JsonUtils.as(aStructure.getQueryDependencies().toArray(new String[]{})), new StringBuilder(RemoteModulesProxy.SERVER_DEPENDENCIES_PROP_NAME), JsonUtils.as(aStructure.getServerDependencies().toArray(new String[]{})) ); ModuleStructureRequest.Response resp = new ModuleStructureRequest.Response(json.toString());
if (!queryDependencies.isEmpty()) { moduleNamesAndProps.add(new StringBuilder("entities")); moduleNamesAndProps.add(JsonUtils.as(queryDependencies.toArray(new String[]{}))); moduleNamesAndProps.add(JsonUtils.as(scriptDoc.getModules().keySet().toArray(new String[]{}))); moduleNamesAndProps.add(JsonUtils.as(resources.toArray(new String[]{}))); moduleNamesAndProps.add(JsonUtils.as(walker.getDependencies().toArray(new String[]{}))); moduleNamesAndProps.add(JsonUtils.as(walker.getServerDependencies().toArray(new String[]{})));
if (clientModuleTime == null || serverModuleTime.after(clientModuleTime)) { checkPrincipalPermission(moduleDoc.getAllowedRoles(), moduleName); StringBuilder json = JsonUtils.o(RemoteServerModulesProxy.CREATE_MODULE_RESPONSE_FUNCTIONS_PROP, JsonUtils.as(moduleDoc.getFunctionProperties().toArray(new String[]{})).toString(), RemoteServerModulesProxy.CREATE_MODULE_RESPONSE_IS_PERMITTED_PROP, String.valueOf(true) );