class ServiceTypePackageVerifier {

	public boolean hasPackage(ServiceType serviceType, String eventPackage) {		
		for (Object obj : serviceType.getPackages().getPackageAndAny()) {
			JAXBElement element = (JAXBElement) obj;
			if (element.getName().getLocalPart().equals("package") && element.getValue().equals(eventPackage)) {
				return true;
			}
		}
		return false;
	}

}