Class.forName(namespace.getCanonicalName().replaceFirst("\\$\\$Lambda.*", "")); } catch (Exception e) { throw new PopulateDisplayDataException( "Failed to get the enclosing class of lambda " + subComponent, e); "Error while populating display data for component '%s': %s", namespace.getName(), e.getMessage()); throw new PopulateDisplayDataException(msg, e);