// If we have @IgnoreLoad, don't add priamry name to the names collection (which is used for loading)
if (this.getAnnotation(IgnoreLoad.class) == null)
nameSet.add(name);
// Now any additional names
AlsoLoad alsoLoad = this.getAnnotation(AlsoLoad.class);
if (alsoLoad != null)
if (alsoLoad.value() == null || alsoLoad.value().length == 0)
throw new IllegalStateException("If specified, @AlsoLoad must specify at least one value: " + thingForDebug);
else
for (String value: alsoLoad.value())
if (value == null || value.trim().length() == 0)
throw new IllegalStateException("Illegal empty value in @AlsoLoad for " + thingForDebug);
else
nameSet.add(value);