public static Map getDeploymentLabelMap(String sDefPID) throws IOException {
try {
HashMap<String, String> labelMap = new HashMap<String, String>();
FieldSearchQuery query = new FieldSearchQuery();
Condition[] conditions = new Condition[2];
conditions[0] = new Condition();
conditions[0].setProperty("fType");
conditions[0].setOperator(ComparisonOperator.fromValue("eq"));
conditions[0].setValue("M");
conditions[1] = new Condition();
conditions[1].setProperty("bDef");
conditions[1].setOperator(ComparisonOperator.fromValue("has"));
conditions[1].setValue(sDefPID);
FieldSearchQuery.Conditions conds = new FieldSearchQuery.Conditions();
conds.getCondition().addAll(Arrays.asList(conditions));