public List<Object> getSelectedInstances(PMContext ctx) throws PMException {
        final List<Object> result = new ArrayList<Object>();
        final List<InstanceId> selectedIndexes = ctx.getEntityContainer().getSelectedInstanceIds();
        for (InstanceId id : selectedIndexes) {
            result.add(ctx.getDataAccess().getItem(ctx, id));
        }
        return result;
    }
public List < Object > getSelectedInstances ( PMContext ctx ) throws PMException { final List < Object > result = new ArrayList < Object > ( ) ; final List < InstanceId > selectedIndexes = ctx . getEntityContainer ( ) . getSelectedInstanceIds ( ) ; for ( InstanceId id : selectedIndexes ) { result . add ( ctx . getDataAccess ( ) . getItem ( ctx , id ) ) ; } return result ; }
@return the selected instances