// Path: src/java/is/idega/block/family/business/LinkToFamilyLogicImpl.java
// public class LinkToFamilyLogicImpl implements LinkToFamilyLogic {
// 
// 	public Collection getCustodiansFor(User user, IWContext iwc) {
// 		Collection custodians = null;
// 		FamilyLogic familyLogic = null;
// 		try {
// 			familyLogic = (FamilyLogic) com.idega.business.IBOLookup.getServiceInstance(iwc, FamilyLogic.class);
// 			custodians = familyLogic.getCustodiansFor(user);
// 		}
// 		catch (NoCustodianFound e) {
// 			//No custodian found for user. Ignoring exception 
// 		}
// 		catch (Exception e) {
// 			e.printStackTrace();
// 		}
// 		return custodians;
// 	}
// }


import is.idega.block.family.business.LinkToFamilyLogicImpl;
import javax.ejb.CreateException;
import javax.ejb.FinderException;
import com.idega.data.IDOLookupException;
import com.idega.idegaweb.IWBundle;
import com.idega.idegaweb.IWBundleStartable;
import com.idega.repository.data.ImplementorRepository;
import com.idega.user.data.GroupRelationType;
import com.idega.user.data.GroupRelationTypeHome;
import com.idega.user.presentation.LinkToFamilyLogic;
package is.idega.block.family;


/**
 * <p>Title: idegaWeb</p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2003</p>
 * <p>Company: idega Software</p>
 * @author <a href="thomas@idega.is">Thomas Hilbig</a>
 * @version 1.0
 * Created on Jun 10, 2004
 */
public class IWBundleStarter implements IWBundleStartable {

	public void start(IWBundle starterBundle) {
		insertStartData();
		ImplementorRepository repository = ImplementorRepository.getInstance();
// Path: src/java/is/idega/block/family/business/LinkToFamilyLogicImpl.java
// public class LinkToFamilyLogicImpl implements LinkToFamilyLogic {
// 
// 	public Collection getCustodiansFor(User user, IWContext iwc) {
// 		Collection custodians = null;
// 		FamilyLogic familyLogic = null;
// 		try {
// 			familyLogic = (FamilyLogic) com.idega.business.IBOLookup.getServiceInstance(iwc, FamilyLogic.class);
// 			custodians = familyLogic.getCustodiansFor(user);
// 		}
// 		catch (NoCustodianFound e) {
// 			//No custodian found for user. Ignoring exception 
// 		}
// 		catch (Exception e) {
// 			e.printStackTrace();
// 		}
// 		return custodians;
// 	}
// }


// Path: src/java/is/idega/block/family/IWBundleStarter.java
import is.idega.block.family.business.LinkToFamilyLogicImpl;
import javax.ejb.CreateException;
import javax.ejb.FinderException;
import com.idega.data.IDOLookupException;
import com.idega.idegaweb.IWBundle;
import com.idega.idegaweb.IWBundleStartable;
import com.idega.repository.data.ImplementorRepository;
import com.idega.user.data.GroupRelationType;
import com.idega.user.data.GroupRelationTypeHome;
import com.idega.user.presentation.LinkToFamilyLogic;

package is.idega.block.family;


/**
 * <p>Title: idegaWeb</p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2003</p>
 * <p>Company: idega Software</p>
 * @author <a href="thomas@idega.is">Thomas Hilbig</a>
 * @version 1.0
 * Created on Jun 10, 2004
 */
public class IWBundleStarter implements IWBundleStartable {

	public void start(IWBundle starterBundle) {
		insertStartData();
		ImplementorRepository repository = ImplementorRepository.getInstance();
		repository.addImplementor(LinkToFamilyLogic.class, LinkToFamilyLogicImpl.class);