boolean[] val = new boolean[aliass.length];
try {
pm = processManagerFactory.getProcessManagerForReadOnly();
pds = pm.listProcessDefinitionRemotesLight();
for (int j = 0; j < aliass.length; j++) {
for (int i = 0; i < pds.length; i++) {
pdr = pds[i];
if (pdr.getAlias() != null && pdr.getAlias().equals(aliass[j])) {
val[j] = true;