/** Whether the component is singleton */ @Override public boolean isSingleton() { if (declaration.isDefinedSingleton() || getGroup() == null) { return declaration.isSingleton(); } return getGroup().isSingleton(); }