return (DeploymentFactory[]) deploymentFactories.toArray(new DeploymentFactory[]{});
return (DeploymentFactory[])deploymentFactories.toArray(new DeploymentFactory[deploymentFactories.size()]);
    public DeploymentFactory[] getDeploymentFactories() {        return (DeploymentFactory[]) deploymentFactories.toArray(new DeploymentFactory[]{});    }