* @param server
* @return
* @throws CoreException
*/
public static IDeploymentCommand createDistributeCommand(IModule module, IServer server) throws CoreException {
IGeronimoServerBehavior gs = (IGeronimoServerBehavior) server.loadAdapter(IGeronimoServerBehavior.class, null);
Target[] targets = gs.getTargets();
return new SynchronizedDeploymentOp(new DistributeCommand(server, module, targets));
}