private String[] personsList = null;
public String[] getPersonsList() {
if (personsList == null) {
ArrayList<String> list = new ArrayList<String>();
DmProduct dmProduct =
DmProductFactory.instance().getClient(getCallContext());
Collection<com.melitronic.domain.entity.Person> persons =
dmProduct.findAllPersons(getCallContext());
for (com.melitronic.domain.entity.Person person : persons) {
list.add(person.toLabel());
}
personsList = new String[list.size()];
list.toArray(personsList);