/** * Ensure that the component is currently loaded. * * @return The component. * @throws Error when the component cannot be loaded. */@SuppressWarnings("unchecked")
public T get() {
try {
isLoaded();
return (T) this;
} catch (Error e) {
load();
}
isLoaded();
return (T) this;
}
/** * Ensure that the component is currently loaded. * * @return The component. * @throws Error when the component cannot be loaded. */@SuppressWarnings("unchecked")
public T get() {
try {
isLoaded();
return (T) this;
} catch (Error e) {
load();
}
isLoaded();
return (T) this;
}