}
public void _listDeploymentPolicies (CommandInterpreter ci){
String policyId = ci.nextArgument();
PolicyManager pm = PolicyManager.getInstance();
if(StringUtils.isBlank(policyId)){
DeploymentPolicy[] depPolicyArr = pm.getDeploymentPolicyList();
for(DeploymentPolicy depPoolicy : depPolicyArr){
ci.println(depPoolicy.toString());
}
}else{
DeploymentPolicy asPolicy = pm.getDeploymentPolicy(policyId);
if(asPolicy != null){
ci.println(asPolicy);
}
}
}