/** * {@inheritDoc} */ public G realize(ApplicationConsole console) throws java.io.IOException { // build a list of applications LinkedList<A> applications = new LinkedList<A>(); for (String prefix : m_builders.keySet()) { Triple<B, S, Integer> triple = m_builders.get(prefix); B builder = triple.getX(); S schema = triple.getY(); int cRequiredInstances = triple.getZ(); for (int i = 1; i <= cRequiredInstances; i++) { String applicationName = String.format("%s-%d", prefix, i); applications.add(builder.realize(schema, applicationName, console)); } } return createApplicationGroup(applications); }