{
if (scope!=SESSION && scope!=APPLICATION)
{
throw new IllegalArgumentException("@Startup only supported for SESSION or APPLICATION scoped components: " + name);
}
Startup annotation = getBeanClass().getAnnotation(Startup.class);
if (dependencies.length == 0 && annotation != null)
{
dependencies = annotation.depends();
}
}
}