Java tutorial
//package com.java2s; public class Main { /** * Checks if the specified id is a single-valued id or a template for multiple id-s. * * @param nodeId * The id to examine * @return true if this id is a template, false if it's a single-values id. */ private static boolean isIdTemplate(final String nodeId) { boolean result = false; if (nodeId.contains("{0}")) { result = true; } return result; } }