if (component.isRendered()) {
jsObj = create(component.getId(), sGroup, config == null ? null : config.getJsObj());
setLocalRef(jsObj, this);
onAvailable();
} else {
component.addListener("render", new Function() {
public void execute() {
jsObj = create(component.getId(), sGroup, config == null ? null : config.getJsObj());
setLocalRef(jsObj, DragDrop.this);
onAvailable();
}