CompiledClass (OutputConsumer outputConsumer, String classToBind) { final Map<String, CompiledClass> compiled = outputConsumer.getCompiledClasses(); while (true) { final CompiledClass fo = compiled.get(classToBind); if (fo != null) { return fo; } final int dotIndex = classToBind.lastIndexOf('.'); if (dotIndex <= 0) { return null; } classToBind = classToBind.substring(0, dotIndex) + "$" + classToBind.substring(dotIndex + 1); } }