code
stringlengths
73
34.1k
label
stringclasses
1 value
public void remove(boolean doDispose) { if (active) { rayHandler.lightList.removeValue(this, false); } else { rayHandler.disabledLights.removeValue(this, false); } rayHandler = null; if (doDispose) dispose(); }
java
void setRayNum(int rays) { if (rays < MIN_RAYS) rays = MIN_RAYS; rayNum = rays; vertexNum = rays + 1; segments = new float[vertexNum * 8]; mx = new float[vertexNum]; my = new float[vertexNum]; f = new float[vertexNum]; }
java
public void setContactFilter(short categoryBits, short groupIndex, short maskBits) { filterA = new Filter(); filterA.categoryBits = categoryBits; filterA.groupIndex = groupIndex; filterA.maskBits = maskBits; }
java
static public void setGlobalContactFilter(short categoryBits, short groupIndex, short maskBits) { globalFilterA = new Filter(); globalFilterA.categoryBits = categoryBits; globalFilterA.groupIndex = groupIndex; globalFilterA.maskBits = maskBits; }
java
public void debugRender(ShapeRenderer shapeRenderer) { shapeRenderer.setColor(Color.YELLOW); FloatArray vertices = Pools.obtain(FloatArray.class); vertices.clear(); for (int i = 0; i < rayNum; i++) { vertices.addAll(mx[i], my[i]); } for (int i = rayNum - 1; i > -1; i--) { vertices.addAll(startX[i], st...
java
public void attachToBody(Body body, float degrees) { this.body = body; this.bodyPosition.set(body.getPosition()); bodyAngleOffset = MathUtils.degreesToRadians * degrees; bodyAngle = body.getAngle(); applyAttachment(); if (staticLight) dirty = true; }
java
void applyAttachment() { if (body == null || staticLight) return; restorePosition.setToTranslation(bodyPosition); rotateAroundZero.setToRotationRad(bodyAngle + bodyAngleOffset); for (int i = 0; i < rayNum; i++) { tmpVec.set(startX[i], startY[i]).mul(rotateAroundZero).mul(restorePosition); startX[i] = t...
java
public void attachToBody(Body body, float offsetX, float offSetY, float degrees) { this.body = body; bodyOffsetX = offsetX; bodyOffsetY = offSetY; bodyAngleOffset = degrees; if (staticLight) dirty = true; }
java
public static String escape(String value, char quote) { Map<CharSequence, CharSequence> lookupMap = new HashMap<>(); lookupMap.put(Character.toString(quote), "\\" + quote); lookupMap.put("\\", "\\\\"); final CharSequenceTranslator escape = new LookupTranslator(lookupMap) .with(n...
java
public List<FunctionWrapper> compileFunctions( ImportStack importStack, Context context, List<?> objects ) { List<FunctionWrapper> callbacks = new LinkedList<>(); for (Object object : objects) { List<FunctionWrapper> objectCallbacks = compileFunctions(importStack, context, object); callbac...
java
public List<FunctionWrapper> compileFunctions( ImportStack importStack, Context context, Object object ) { Class<?> functionClass = object.getClass(); Method[] methods = functionClass.getDeclaredMethods(); List<FunctionDeclaration> declarations = new LinkedList<>(); for (Method method : methods...
java
public FunctionDeclaration createDeclaration( ImportStack importStack, Context context, Object object, Method method ) { StringBuilder signature = new StringBuilder(); Parameter[] parameters = method.getParameters(); List<ArgumentConverter> argumentConverters = new ArrayList<>(method.getParameterCo...
java
private String formatDefaultValue(Object value) { if (value instanceof Boolean) { return ((Boolean) value) ? "true" : "false"; } if (value instanceof Number) { return value.toString(); } if (value instanceof Collection) { return formatCollectionValue((Collection) value); } ...
java
public SassValue invoke(List<?> arguments) { try { ArrayList<Object> values = new ArrayList<>(argumentConverters.size()); for (ArgumentConverter argumentConverter : argumentConverters) { Object value = argumentConverter.convert(arguments, importStack, context); values.add(value); ...
java
public Output compileFile(URI inputPath, URI outputPath, Options options) throws CompilationException { FileContext context = new FileContext(inputPath, outputPath, options); return compile(context); }
java
public Output compile(Context context) throws CompilationException { Objects.requireNonNull(context, "Parameter context must not be null"); if (context instanceof FileContext) { return compile((FileContext) context); } if (context instanceof StringContext) { return compile((StringContext) ...
java
public List<FunctionArgumentSignature> createDefaultArgumentSignature(Parameter parameter) { List<FunctionArgumentSignature> list = new LinkedList<>(); String name = getParameterName(parameter); Object defaultValue = getDefaultValue(parameter); list.add(new FunctionArgumentSignature(name, defaultValue)...
java
public String getParameterName(Parameter parameter) { Name annotation = parameter.getAnnotation(Name.class); if (null == annotation) { return parameter.getName(); } return annotation.value(); }
java
public Object getDefaultValue(Parameter parameter) { Class<?> type = parameter.getType(); if (TypeUtils.isaString(type)) { return getStringDefaultValue(parameter); } if (TypeUtils.isaByte(type)) { return getByteDefaultValue(parameter); } if (TypeUtils.isaShort(type)) { retur...
java
public int register(Import importSource) { int id = registry.size() + 1; registry.put(id, importSource); return id; }
java
public static SassValue convertToSassValue(Object value) { if (null == value) { return SassNull.SINGLETON; } if (value instanceof SassValue) { return (SassValue) value; } Class cls = value.getClass(); if (isaBoolean(cls)) { return new SassBoolean((Boolean) value); } ...
java
private Collection<Import> resolveImport(Path path) throws IOException, URISyntaxException { URL resource = resolveResource(path); if (null == resource) { return null; } // calculate a webapp absolute URI final URI uri = new URI( Paths.get("/").resolve( Paths.get(getServletContext().getResource("/...
java
private URL resolveResource(Path path) throws MalformedURLException { final Path dir = path.getParent(); final String basename = path.getFileName().toString(); for (String prefix : new String[]{"_", ""}) { for (String suffix : new String[]{".scss", ".css", ""}) { final Path target = dir.resolve(prefix + b...
java
public SassValue apply(SassValue value) { SassList sassList; if (value instanceof SassList) { sassList = (SassList) value; } else { sassList = new SassList(); sassList.add(value); } return declaration.invoke(sassList); }
java
static void loadLibrary() { try { File dir = Files.createTempDirectory("libjsass-").toFile(); dir.deleteOnExit(); if (System.getProperty("os.name").toLowerCase().startsWith("win")) { System.load(saveLibrary(dir, "sass")); } System.load(saveLibrary(dir, "jsass")); } catch ...
java
private static URL findLibraryResource(final String libraryFileName) { String osName = System.getProperty("os.name").toLowerCase(); String osArch = System.getProperty("os.arch").toLowerCase(); String resourceName = null; LOG.trace("Load library \"{}\" for os {}:{}", libraryFileName, osName, osArch); ...
java
private static String determineWindowsLibrary( final String library, final String osName, final String osArch ) { String resourceName; String platform; String fileExtension = "dll"; switch (osArch) { case ARCH_AMD64: case ARCH_X86_64: platform = "windows-x64"; ...
java
private static String determineLinuxLibrary( final String library, final String osName, final String osArch ) { String resourceName; String platform = null; String fileExtension = "so"; switch (osArch) { case ARCH_AMD64: case ARCH_X86_64: platform = "linux-x64"; ...
java
private static String determineFreebsdLibrary( final String library, final String osName, final String osArch ) { String resourceName; String platform = null; String fileExtension = "so"; switch (osArch) { case ARCH_AMD64: case ARCH_X86_64: platform = "freebsd-x6...
java
private static String determineMacLibrary(final String library) { String resourceName; String platform = "darwin"; String fileExtension = "dylib"; resourceName = "/" + platform + "/" + library + "." + fileExtension; return resourceName; }
java
static String saveLibrary(final File dir, final String libraryName) throws IOException { String libraryFileName = "lib" + libraryName; URL libraryResource = findLibraryResource(libraryFileName); String basename = FilenameUtils.getName(libraryResource.getPath()); File file = new File(dir, basename); ...
java
public Output compile(FileContext context, ImportStack importStack) throws CompilationException { NativeFileContext nativeContext = convertToNativeContext(context, importStack); return compileFile(nativeContext); }
java
public void execute() throws ActivityException{ isSynchronized = checkIfSynchronized(); if (!isSynchronized) { EventWaitInstance received = registerWaitEvents(false, true); if (received!=null) resume(getExternalEventInstanceDetails(received.getMessageDocumentId(...
java
private String escape(String rawActivityName) { boolean lastIsUnderScore = false; StringBuffer sb = new StringBuffer(); for (int i=0; i<rawActivityName.length(); i++) { char ch = rawActivityName.charAt(i); if (Character.isLetterOrDigit(ch)) { sb.append(ch)...
java
private List<Transition> getIncomingTransitions(Process procdef, Long activityId, Map<String,String> idToEscapedName) { List<Transition> incomingTransitions = new ArrayList<Transition>(); for (Transition trans : procdef.getTransitions()) { if (trans.getToId().equals(activityId)) ...
java
protected SOAPMessage createSoapRequest(Object requestObj) throws ActivityException { try { MessageFactory messageFactory = getSoapMessageFactory(); SOAPMessage soapMessage = messageFactory.createMessage(); Map<Name,String> soapReqHeaders = getSoapRequestHeaders(); ...
java
protected Node unwrapSoapResponse(SOAPMessage soapResponse) throws ActivityException, AdapterException { try { // unwrap the soap content from the message SOAPBody soapBody = soapResponse.getSOAPBody(); Node childElem = null; Iterator<?> it = soapBody.getChildElem...
java
@Override public void applyImplicitParameters(ReaderContext context, Operation operation, Method method) { // copied from io.swagger.servlet.extensions.ServletReaderExtension final ApiImplicitParams implicitParams = method.getAnnotation(ApiImplicitParams.class); if (implicitParams != null &&...
java
private String translateType(String type, Map<String,String> attrs) { String translated = type.toLowerCase(); if ("select".equals(type)) translated = "radio"; else if ("boolean".equals(type)) translated = "checkbox"; else if ("list".equals(type)) { tra...
java
private void adjustWidgets(String implCategory) { // adjust to add script language options param Map<Integer,Widget> companions = new HashMap<>(); for (int i = 0; i < widgets.size(); i++) { Widget widget = widgets.get(i); if ("expression".equals(widget.type) || ("edit".eq...
java
public static String substitute(String input, Map<String,Object> values) { StringBuilder output = new StringBuilder(input.length()); int index = 0; Matcher matcher = SUBST_PATTERN.matcher(input); while (matcher.find()) { String match = matcher.group(); output.appe...
java
protected String extractFormData(JSONObject datadoc) throws ActivityException, JSONException { String varstring = this.getAttributeValue(TaskActivity.ATTRIBUTE_TASK_VARIABLES); List<String[]> parsed = StringHelper.parseTable(varstring, ',', ';', 5); for (String[] one : parsed) { ...
java
public void onStartup() throws StartupException { try { Map<String, Properties> fileListeners = getFileListeners(); for (String listenerName : fileListeners.keySet()) { Properties listenerProps = fileListeners.get(listenerName); String listenerClassName = ...
java
public void onShutdown() { for (String listenerName : registeredFileListeners.keySet()) { logger.info("Deregistering File Listener: " + listenerName); FileListener listener = registeredFileListeners.get(listenerName); listener.stopListening(); } }
java
public boolean hasRole(String roleName){ if (roles != null) { for (String r : roles) { if (r.equals(roleName)) return true; } } return false; }
java
public boolean isWorkActivity(Long pWorkId) { if(this.activities == null){ return false; } for(int i=0; i<activities.size(); i++){ if(pWorkId.longValue() == activities.get(i).getId().longValue()){ return true; } } return false;...
java
public Process getSubProcessVO(Long id) { if (this.getId() != null && this.getId().equals(id)) // Id field is null for instance definitions return this; if (this.subprocesses == null) return null; for (Process ret : subprocesses) { if (ret.getId().equals(id)) ...
java
public Activity getActivityVO(Long pWorkId) { if(this.activities == null){ return null; } for(int i=0; i<activities.size(); i++){ if(pWorkId.longValue() == activities.get(i).getId().longValue()){ return activities.get(i); } } r...
java
public Transition getWorkTransitionVO(Long pWorkTransId) { if(this.transitions == null){ return null; } for(int i=0; i<transitions.size(); i++){ if(pWorkTransId.longValue() == transitions.get(i).getId().longValue()){ return transitions.get(i); ...
java
public Transition getTransition(Long fromId, Integer eventType, String completionCode) { Transition ret = null; for (Transition transition : getTransitions()) { if (transition.getFromId().equals(fromId) && transition.match(eventType, completionCode)) { if ...
java
public List<Transition> getTransitions(Long fromWorkId, Integer eventType, String completionCode) { List<Transition> allTransitions = getAllTransitions(fromWorkId); List<Transition> returnSet = findTransitions(allTransitions, eventType, completionCode); if (returnSet.size() > 0) retu...
java
public Transition getTransition(Long id) { for (Transition transition : getTransitions()) { if (transition.getId().equals(id)) return transition; } return null; // not found }
java
public Activity getActivityById(String logicalId) { for (Activity activityVO : getActivities()) { if (activityVO.getLogicalId().equals(logicalId)) { activityVO.setProcessName(getName()); return activityVO; } } for (Process subProc : this.su...
java
public byte[] postBytes(byte[] content) throws IOException { if (!connection.isOpen()) connection.open(); connection.prepare("POST"); OutputStream os = connection.getOutputStream(); os.write(content); response = connection.readInput(); os.close(); ...
java
public byte[] getBytes() throws IOException { if (!connection.isOpen()) connection.open(); connection.prepare("GET"); response = connection.readInput(); return getResponseBytes(); }
java
public String put(File file) throws IOException { if (!connection.isOpen()) connection.open(); connection.prepare("PUT"); String contentType = connection.getHeader("Content-Type"); if (contentType == null) contentType = connection.getHeader("content-type"); ...
java
public byte[] deleteBytes(byte[] content) throws IOException { if (!connection.isOpen()) connection.open(); connection.prepare("DELETE"); OutputStream os = null; if (content != null) { connection.getConnection().setDoOutput(true); os = connection.ge...
java
public String[] getDistinctEventLogEventSources() throws DataAccessException, EventException { TransactionWrapper transaction = null; EngineDataAccessDB edao = new EngineDataAccessDB(); try { transaction = edao.startTransaction(); return edao.getDistinctEventLogEventS...
java
public VariableInstance setVariableInstance(Long procInstId, String name, Object value) throws DataAccessException { TransactionWrapper transaction = null; EngineDataAccessDB edao = new EngineDataAccessDB(); try { transaction = edao.startTransaction(); VariableInstanc...
java
public void sendDelayEventsToWaitActivities(String masterRequestId) throws DataAccessException, ProcessException { TransactionWrapper transaction = null; EngineDataAccessDB edao = new EngineDataAccessDB(); try { transaction = edao.startTransaction(); List<Proc...
java
private boolean isProcessInstanceResumable(ProcessInstance pInstance) { int statusCd = pInstance.getStatusCode().intValue(); if (statusCd == WorkStatus.STATUS_COMPLETED.intValue()) { return false; } else if (statusCd == WorkStatus.STATUS_CANCELLED.intValue()) { return fa...
java
public ProcessInstance getProcessInstance(Long procInstId) throws ProcessException, DataAccessException { TransactionWrapper transaction = null; EngineDataAccessDB edao = new EngineDataAccessDB(); try { transaction = edao.startTransaction(); return edao.getProcessInst...
java
@Override public List<ProcessInstance> getProcessInstances(String masterRequestId, String processName) throws ProcessException, DataAccessException { TransactionWrapper transaction = null; EngineDataAccessDB edao = new EngineDataAccessDB(); try { Process procdef = ProcessCach...
java
public List<ActivityInstance> getActivityInstances(String masterRequestId, String processName, String activityLogicalId) throws ProcessException, DataAccessException { TransactionWrapper transaction = null; EngineDataAccessDB edao = new EngineDataAccessDB(); try { Process procdef...
java
public ActivityInstance getActivityInstance(Long pActivityInstId) throws ProcessException, DataAccessException { ActivityInstance ai; TransactionWrapper transaction = null; EngineDataAccessDB edao = new EngineDataAccessDB(); try { transaction = edao.startTransaction(); ...
java
public TransitionInstance getWorkTransitionInstance(Long pId) throws DataAccessException, ProcessException { TransitionInstance wti; TransactionWrapper transaction = null; EngineDataAccessDB edao = new EngineDataAccessDB(); try { transaction = edao.startTransaction(); ...
java
public JSONObject getJson() throws JSONException { JSONObject json = create(); if (value != null) json.put("value", value); if (label != null) json.put("label", label); if (type != null) json.put("type", type); if (display != null) ...
java
@ApiModelProperty(hidden=true) public static Display getDisplay(String option) { if ("Optional".equals(option)) return Display.Optional; else if ("Required".equals(option)) return Display.Required; else if ("Read Only".equals(option)) return Display.ReadOn...
java
public static Display getDisplay(int mode) { if (mode == 0) return Display.Required; else if (mode == 1) return Display.Optional; else if (mode == 2) return Display.ReadOnly; else if (mode == 3) return Display.Hidden; else ...
java
public void onStartup() throws StartupException { if (monitor == null) { monitor = this; thread = new Thread() { @Override public void run() { this.setName("UserGroupMonitor-thread"); monitor.start(); ...
java
public void sendTextMessage(String queueName, String message, int delaySeconds) throws NamingException, JMSException, ServiceLocatorException { sendTextMessage(null, queueName, message, delaySeconds, null); }
java
public void sendTextMessage(String contextUrl, String queueName, String message, int delaySeconds, String correlationId) throws NamingException, JMSException, ServiceLocatorException { if (logger.isDebugEnabled()) logger.debug("Send JMS message: " + message); if (mdwM...
java
public Queue getQueue(Session session, String commonName) throws ServiceLocatorException { Queue queue = (Queue) queueCache.get(commonName); if (queue == null) { try { String name = namingProvider.qualifyJmsQueueName(commonName); queue = jmsProvider.getQueue(s...
java
public Queue getQueue(String contextUrl, String queueName) throws ServiceLocatorException { try { String jndiName = null; if (contextUrl == null) { jndiName = namingProvider.qualifyJmsQueueName(queueName); } else { jndiName = queueN...
java
public void broadcastTextMessage(String topicName, String textMessage, int delaySeconds) throws NamingException, JMSException, ServiceLocatorException { if (mdwMessageProducer != null) { mdwMessageProducer.broadcastMessageToTopic(topicName, textMessage); } else { ...
java
public ResultSet runSelect(String logMessage, String query, Object[] arguments) throws SQLException { long before = System.currentTimeMillis(); try { return runSelect(query, arguments); } finally { if (logger.isDebugEnabled()) { long after = System...
java
protected KieBase getKnowledgeBase(String name, String version) throws ActivityException { return getKnowledgeBase(name, version, null); }
java
protected ClassLoader getClassLoader() { ClassLoader loader = null; Package pkg = PackageCache.getProcessPackage(getProcessId()); if (pkg != null) { loader = pkg.getCloudClassLoader(); } if (loader == null) { loader = getClass().getClassLoader(); }...
java
public List<String> getRoles(String path) { List<String> roles = super.getRoles(path); roles.add(Role.ASSET_DESIGN); return roles; }
java
@Override public String toApiImport(String name) { if (!apiPackage().isEmpty()) return apiPackage(); else if (trimApiPaths) return trimmedPaths.get(name).substring(1).replace('/', '.'); else return super.toApiImport(name); }
java
public static List<File> listOverrideFiles(String type) throws IOException { List<File> files = new ArrayList<File>(); if (getMdw().getOverrideRoot().isDirectory()) { File dir = new File(getMdw().getOverrideRoot() + "/" + type); if (dir.isDirectory()) addFiles(fil...
java
private int search(int startLine, boolean backward) throws IOException { search = search.toLowerCase(); try (Stream<String> stream = Files.lines(path)) { if (backward) { int idx = -1; if (startLine > 0) idx = searchTo(startLine - 1, true); ...
java
@Override public String handleEventMessage(String msg, Object msgdoc, Map<String, String> metainfo) throws EventHandlerException { return null; }
java
private static void initializeDynamicJavaAssets() throws DataAccessException, IOException, CachingException { logger.info("Initializing Dynamic Java assets for Groovy..."); for (Asset java : AssetCache.getAssets(Asset.JAVA)) { Package pkg = PackageCache.getAssetPackage(java.getId()); ...
java
public JSONObject post(String path, JSONObject content, Map<String,String> headers) throws ServiceException, JSONException { String sub = getSegment(path, 4); if ("event".equals(sub)) { SlackEvent event = new SlackEvent(content); EventHandler eventHandler = getEventHa...
java
@Override public JSONObject get(String path, Map<String,String> headers) throws ServiceException, JSONException { // we trust this header value because only MDW can set it String authUser = (String)headers.get(Listener.AUTHENTICATED_USER_HEADER); try { if (authUser == null) ...
java
public static String getEngineUrl(String serverSpec) throws NamingException { String url; int at = serverSpec.indexOf('@'); if (at>0) { url = serverSpec.substring(at+1); } else { int colonDashDash = serverSpec.indexOf("://"); if (colonDashDash>0) { ...
java
protected Object handleResult(Result result) throws ActivityException { ServiceValuesAccess serviceValues = getRuntimeContext().getServiceValues(); StatusResponse statusResponse; if (result.isError()) { logsevere("Validation error: " + result.getStatus().toString()); stat...
java
private void deleteDynamicTemplates() throws IOException { File codegenDir = new File(getProjectDir() + "/codegen"); if (codegenDir.exists()) { getOut().println("Deleting " + codegenDir); new Delete(codegenDir, true).run(); } File assetsDir = new File(getProjectDi...
java
public static void bulletinOff(Bulletin bulletin, Level level, String message) { if (bulletin == null) return; synchronized (bulletins) { bulletins.remove(bulletin.getId(), bulletin); } try { WebSocketMessenger.getInstance().send("SystemMessage", bulle...
java
private static boolean exclude(String host, java.nio.file.Path path) { List<PathMatcher> exclusions = getExcludes(host); if (exclusions == null && host != null) { exclusions = getExcludes(null); // check global config } if (exclusions != null) { for (PathMatcher m...
java
public String getMdwVersion() throws IOException { if (mdwVersion == null) { YamlProperties yaml = getProjectYaml(); if (yaml != null) { mdwVersion = yaml.getString(Props.ProjectYaml.MDW_VERSION); } } return mdwVersion; }
java
public String findMdwVersion(boolean snapshots) throws IOException { URL url = new URL(getReleasesUrl() + MDW_COMMON_PATH); if (snapshots) url = new URL(getSnapshotsUrl() + MDW_COMMON_PATH); Crawl crawl = new Crawl(url, snapshots); crawl.run(); if (crawl.getReleases()...
java
protected void initBaseAssetPackages() throws IOException { baseAssetPackages = new ArrayList<>(); addBasePackages(getAssetRoot(), getAssetRoot()); if (baseAssetPackages.isEmpty()) baseAssetPackages = Packages.DEFAULT_BASE_PACKAGES; }
java
public String getRelativePath(File from, File to) { Path fromPath = Paths.get(from.getPath()).normalize().toAbsolutePath(); Path toPath = Paths.get(to.getPath()).normalize().toAbsolutePath(); return fromPath.relativize(toPath).toString().replace('\\', '/'); }
java
protected void downloadTemplates(ProgressMonitor... monitors) throws IOException { File templateDir = getTemplateDir(); if (!templateDir.exists()) { if (!templateDir.mkdirs()) throw new IOException("Unable to create directory: " + templateDir.getAbsolutePath()); S...
java
@Override public Object onRequest(ActivityRuntimeContext context, Object content, Map<String,String> headers, Object connection) { if (connection instanceof HttpConnection) { HttpConnection httpConnection = (HttpConnection)connection; Tracing tracing = TraceHelper.getTracing("mdw-ada...
java
static TaskInstance createTaskInstance(Long taskId, String masterRequestId, Long procInstId, String secOwner, Long secOwnerId, String title, String comments) throws ServiceException, DataAccessException { return createTaskInstance(taskId, masterRequestId, procInstId, secOwner, secOwnerId, title, com...
java
static TaskInstance createTaskInstance(Long taskId, String masterOwnerId, String title, String comment, Instant due, Long userId, Long secondaryOwner) throws ServiceException, DataAccessException { CodeTimer timer = new CodeTimer("createTaskInstance()", true); TaskTemplate task = TaskTem...
java
List<String> determineWorkgroups(Map<String,String> indexes) throws ServiceException { TaskTemplate taskTemplate = getTemplate(); String routingStrategyAttr = taskTemplate.getAttribute(TaskAttributeConstant.ROUTING_STRATEGY); if (StringHelper.isEmpty(routingStrategyAttr)) { retur...
java