* @return
*/
public static final WireEvent getUnWireEvent(AuRequest request) {
final Component comp = request.getComponent();
if (comp == null)
throw new UiException(MZk.ILLEGAL_REQUEST_COMPONENT_REQUIRED, request);
final Map data = request.getData();
Wirebox targetbox = (Wirebox) request.getDesktop().getComponentByUuidIfAny((String) data.get("boxid"));
if (targetbox == null && !data.containsKey("joint"))
throw new UiException(MZk.ILLEGAL_REQUEST_WRONG_DATA, new Object[] { data, request });
String joint = (String) data.get("joint");
ArrayList list = targetbox.getAvailableWires(joint);
Wire unwiredWire = (Wire) list.get(0);
if(unwiredWire == null )
throw new UiException(MZk.ILLEGAL_REQUEST_WRONG_DATA, new Object[] { data, request });
unwiredWire.setParent(null);
return new WireEvent(request.getCommand(), unwiredWire.getOut(), unwiredWire, null);
}