// Path: src/java/is/idega/idegaweb/egov/cases/data/CaseCategory.java
// public interface CaseCategory extends IDOEntity {
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#getName
// 	 */
// 	public String getName();
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#getDescription
// 	 */
// 	public String getDescription();
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#getHandlerGroup
// 	 */
// 	public Group getHandlerGroup();
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#getOrder
// 	 */
// 	public int getOrder();
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#getParent
// 	 */
// 	public CaseCategory getParent();
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#setName
// 	 */
// 	public void setName(String name);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#setDescription
// 	 */
// 	public void setDescription(String description);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#setHandlerGroup
// 	 */
// 	public void setHandlerGroup(Group group);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#setHandlerGroup
// 	 */
// 	public void setHandlerGroup(Object groupPK);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#setOrder
// 	 */
// 	public void setOrder(int order);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#setParent
// 	 */
// 	public void setParent(CaseCategory category);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#getLocalizedCategoryName
// 	 */
// 	public String getLocalizedCategoryName(Locale locale);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#getLocalizedCategoryDescription
// 	 */
// 	public String getLocalizedCategoryDescription(Locale locale);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#addLocalization
// 	 */
// 	public void addLocalization(LocalizedText localizedText) throws SQLException;
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#getLocalizedText
// 	 */
// 	public LocalizedText getLocalizedText(int icLocaleId);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#getLocalizedText
// 	 */
// 	public LocalizedText getLocalizedText(Locale locale);
// }


import is.idega.idegaweb.egov.cases.data.CaseCategory;
import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import javax.ejb.FinderException;
import com.idega.business.IBOLookup;
import com.idega.business.IBOLookupException;
import com.idega.business.IBORuntimeException;
import com.idega.idegaweb.IWApplicationContext;
import com.idega.presentation.IWContext;
import com.idega.presentation.remotescripting.RemoteScriptCollection;
import com.idega.presentation.remotescripting.RemoteScriptHandler;
import com.idega.presentation.remotescripting.RemoteScriptingResults;
import com.idega.user.business.UserBusiness;
import com.idega.user.data.Group;
import com.idega.user.data.User;
				}
			}
		}
		catch (RemoteException e) {
			e.printStackTrace();
		}
		catch (FinderException e) {
			e.printStackTrace();
		}

		RemoteScriptingResults rsr = new RemoteScriptingResults(RemoteScriptHandler.getLayerName(sourceName, "id"), ids);
		rsr.addLayer(RemoteScriptHandler.getLayerName(sourceName, "name"), names);

		return rsr;
	}

	private CasesBusiness getBusiness(IWApplicationContext iwac) {
		try {
			return (CasesBusiness) IBOLookup.getServiceInstance(iwac, CasesBusiness.class);
		}
		catch (IBOLookupException ile) {
			throw new IBORuntimeException(ile);
		}
	}

	private UserBusiness getUserBusiness(IWApplicationContext iwac) {
		try {
			return (UserBusiness) IBOLookup.getServiceInstance(iwac, UserBusiness.class);
		}
		catch (IBOLookupException ile) {
// Path: src/java/is/idega/idegaweb/egov/cases/data/CaseCategory.java
// public interface CaseCategory extends IDOEntity {
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#getName
// 	 */
// 	public String getName();
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#getDescription
// 	 */
// 	public String getDescription();
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#getHandlerGroup
// 	 */
// 	public Group getHandlerGroup();
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#getOrder
// 	 */
// 	public int getOrder();
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#getParent
// 	 */
// 	public CaseCategory getParent();
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#setName
// 	 */
// 	public void setName(String name);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#setDescription
// 	 */
// 	public void setDescription(String description);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#setHandlerGroup
// 	 */
// 	public void setHandlerGroup(Group group);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#setHandlerGroup
// 	 */
// 	public void setHandlerGroup(Object groupPK);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#setOrder
// 	 */
// 	public void setOrder(int order);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#setParent
// 	 */
// 	public void setParent(CaseCategory category);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#getLocalizedCategoryName
// 	 */
// 	public String getLocalizedCategoryName(Locale locale);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#getLocalizedCategoryDescription
// 	 */
// 	public String getLocalizedCategoryDescription(Locale locale);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#addLocalization
// 	 */
// 	public void addLocalization(LocalizedText localizedText) throws SQLException;
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#getLocalizedText
// 	 */
// 	public LocalizedText getLocalizedText(int icLocaleId);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseCategoryBMPBean#getLocalizedText
// 	 */
// 	public LocalizedText getLocalizedText(Locale locale);
// }


// Path: src/java/is/idega/idegaweb/egov/cases/business/CaseHandlerCollectionHandler.java
import is.idega.idegaweb.egov.cases.data.CaseCategory;
import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import javax.ejb.FinderException;
import com.idega.business.IBOLookup;
import com.idega.business.IBOLookupException;
import com.idega.business.IBORuntimeException;
import com.idega.idegaweb.IWApplicationContext;
import com.idega.presentation.IWContext;
import com.idega.presentation.remotescripting.RemoteScriptCollection;
import com.idega.presentation.remotescripting.RemoteScriptHandler;
import com.idega.presentation.remotescripting.RemoteScriptingResults;
import com.idega.user.business.UserBusiness;
import com.idega.user.data.Group;
import com.idega.user.data.User;

				}
			}
		}
		catch (RemoteException e) {
			e.printStackTrace();
		}
		catch (FinderException e) {
			e.printStackTrace();
		}

		RemoteScriptingResults rsr = new RemoteScriptingResults(RemoteScriptHandler.getLayerName(sourceName, "id"), ids);
		rsr.addLayer(RemoteScriptHandler.getLayerName(sourceName, "name"), names);

		return rsr;
	}

	private CasesBusiness getBusiness(IWApplicationContext iwac) {
		try {
			return (CasesBusiness) IBOLookup.getServiceInstance(iwac, CasesBusiness.class);
		}
		catch (IBOLookupException ile) {
			throw new IBORuntimeException(ile);
		}
	}

	private UserBusiness getUserBusiness(IWApplicationContext iwac) {
		try {
			return (UserBusiness) IBOLookup.getServiceInstance(iwac, UserBusiness.class);
		}
		catch (IBOLookupException ile) {
			throw new IBORuntimeException(ile);