/*******************************************************************************
 *  Copyright 2017-2018 Centre for Development of Advanced Computing(C-DAC), Pune
 *  
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *  
 *   http://www.apache.org/licenses/LICENSE-2.0
 *  
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *******************************************************************************/
package cdac.medinfo.sdk.dcm30_04.dicommodel.ophthalmic;

import java.io.IOException;
import java.util.Locale;

import cdac.medinfo.sdk.dcm30_04.commoninterface.IDataSet;
import cdac.medinfo.sdk.dcm30_04.commoninterface.IDicomStream;
import cdac.medinfo.sdk.dcm30_04.commoninterface.IDictionaryReader;
import cdac.medinfo.sdk.dcm30_04.commoninterface.ITransferSyntax;
import cdac.medinfo.sdk.dcm30_04.dicommodel.modules.AcquisitionContextModule;
import cdac.medinfo.sdk.dcm30_04.dicommodel.modules.CommonInstanceReferenceModule;
import cdac.medinfo.sdk.dcm30_04.dicommodel.modules.CornealTopographyMapAnalysisModule;
import cdac.medinfo.sdk.dcm30_04.dicommodel.modules.CornealTopographyMapImageModule;
import cdac.medinfo.sdk.dcm30_04.dicommodel.modules.CornealTopographyMapSeriesModule;
import cdac.medinfo.sdk.dcm30_04.dicommodel.modules.EnhancedGeneralEquipmentModule;
import cdac.medinfo.sdk.dcm30_04.dicommodel.modules.FrameOfReferenceModule;
import cdac.medinfo.sdk.dcm30_04.dicommodel.modules.GeneralImageModule;
import cdac.medinfo.sdk.dcm30_04.dicommodel.modules.ICCProfileModule;
import cdac.medinfo.sdk.dcm30_04.dicommodel.modules.ImageIOD;
import cdac.medinfo.sdk.dcm30_04.dicommodel.modules.OphthalmicPhotographyAcquisitionParametersModule;
import cdac.medinfo.sdk.dcm30_04.dicommodel.modules.PaletteColorLookupTableModule;
import cdac.medinfo.sdk.dcm30_04.dicommodel.modules.SOPCommonModule;
import cdac.medinfo.sdk.dcm30_04.dicommodel.modules.SynchronizationModule;
import cdac.medinfo.sdk.dcm30_04.enums.EnumModuleNames;
import cdac.medinfo.sdk.dcm30_04.enums.EnumSOPClassUIDs;

import cdac.medinfo.sdk.dcm30_04.exceptions.ConditionFailedException;
import cdac.medinfo.sdk.dcm30_04.exceptions.InvalidIODException;
import cdac.medinfo.sdk.dcm30_04.exceptions.InvalidModuleException;
import cdac.medinfo.sdk.dcm30_04.exceptions.ParseException;
import cdac.medinfo.sdk.dcm30_04.utils.DicomConfig;
import cdac.medinfo.sdk.dcm30_04.utils.DicomLogger;
import cdac.medinfo.sdk.dcm30_04.utils.ResourceBundleWrapper;
/**
 * The Corneal Topography Map IOD is generated by ophthalmic corneal topography mapping devices, such as reflection-based topographyand elevation-based tomography instruments to generate curvature and/or elevation measurements of corneal anterior and posteriorsurfaces that are presented topographically using a monochromatic image and a pseudo-color map.
 * @author saloni
 *
 */
public class CornealTopographyMapIOD extends ImageIOD
{
	/**
	 * The Constant CORNEAL_TOPOGRAPHY_MAP_IOD.
	 */
	public static final String CORNEAL_TOPOGRAPHY_MAP_IOD = "Corneal Topography Map IOD";

	/**
	 * The obj Frame of Reference module.
	 */
	FrameOfReferenceModule objFrameOfReferenceModule = null;
	/**
	 * The obj Enhanced General Equipment module.
	 */
	EnhancedGeneralEquipmentModule objEnhancedGeneralEquipmentModule= null;
	
	/**
	 * Instantiates a new AcquisitionContextModule.
	 */
	AcquisitionContextModule objAcquisitionContextModule = null;
	/**
	 * The obj ICC Profile module.
	 */
	ICCProfileModule objICCProfileModule = null;
	
	/**
	 * The obj sop common module.
	 */
	SOPCommonModule objSOPCommonModule = null;
	
	/**
	 * The obj Common Instance Reference module.
	 */
	CommonInstanceReferenceModule objCommonInstanceReferenceModule = null;
	
	/**
	 * The obj Corneal Topography Map Series module.
	 */
	CornealTopographyMapSeriesModule objCornealTopographyMapSeriesModule = null;
	
	/**
	 * The obj General Image module.
	 */
	GeneralImageModule objGeneralImageModule = null;
	/**
	 * The obj Palette Color Lookup Table module.
	 */
	PaletteColorLookupTableModule objPaletteColorLookupTableModule = null;
	/**
	 * The obj Corneal Topography Map Image module.
	 */
	CornealTopographyMapImageModule objCornealTopographyMapImageModule = null;
	
	/**
	 * The obj Corneal Topography Map Analysis.
	 */
	CornealTopographyMapAnalysisModule objCornealTopographyMapAnalysisModule = null;
	
	/**
	 * The obj Ophthalmic Photography Acquisition Parameters module.
	 */
	OphthalmicPhotographyAcquisitionParametersModule objOphthalmicPhotographyAcquisitionParametersModule = null;
	
	

	/**
	 * Instantiates a new CornealTopographyMapIOD.
	 */
		public CornealTopographyMapIOD()
	{
		super();
	}

	/**
	 * This constructor initializes the TransferSyntax  in its superclass IOD.
	 * 
	 * @param objITransferSyntax_ - specifies the DICOM Standard defined TransfeSyntax.
	 */
	public CornealTopographyMapIOD(ITransferSyntax objITransferSyntax_)
	{
		super(objITransferSyntax_);
	}

	/**
	 * This constructor initializes the  DictionaryReader
	 * in its superclass IOD.
	 * 
	 * @param objIDictionaryReader_ - specifies the DICOM Dictionary reader to be used .
	 */
	public CornealTopographyMapIOD(IDictionaryReader objIDictionaryReader_)
	{
		super(objIDictionaryReader_);
	}

	/**
	 * This constructor accepts the DataSet from the user   in its superclass IOD.
	 * 
	 * @param objIDataSet_ - specifies the data set to be set in the IOD.
	 */
	public CornealTopographyMapIOD(IDataSet objIDataSet_)
	{
		super(objIDataSet_);
	}

	/**
	 * This constructor initializes the TransferSyntax and DictionaryReader in its super class IOD.
	 * 
	 * @param objITransferSyntax_ specifies the DICOM Standard defined TransfeSyntax.
	 * @param objIDictionaryReader_ specifies the DICOM Dictionary reader to be used .
	 */
	public CornealTopographyMapIOD(ITransferSyntax objITransferSyntax_,IDictionaryReader objIDictionaryReader_)
	{
		super(objITransferSyntax_,objIDictionaryReader_);
	}

	/**
	 * Creates CornealTopographyMapIOD IOD from a DICOM file containing CornealTopographyMapIOD DICOM data.
	 * @param strFileName DICOM File with absolute path.
	 * @throws IOException Exception caused due to wrong I/O operations. 
	 * @throws ParseException signals if some parse exceptions are occurred.
	 * @throws InvalidIODException signals if some IOD exceptions are occurred.
	 */
	public CornealTopographyMapIOD(String strFileName)throws IOException,InvalidIODException
	{
		super(strFileName);
		try
		{
			if(objIDataSet != null)
			{
				String strSOPClassUID = objIDataSet.getSOPClassUID();
				if(strSOPClassUID != null)
				{
					if(!strSOPClassUID.equals(EnumSOPClassUIDs.CORNEALTOPOGRAPHYMAPIOD.getValue()))
					{
						throw new InvalidIODException(ResourceBundleWrapper.getValue("exceptions", "InvalidIOD.FileNotMatched", new Locale(DicomConfig.createInstance().getLocale())) + CORNEAL_TOPOGRAPHY_MAP_IOD);
					}
				}
				strSOPClassUID = null;
			}
		}
		catch(InvalidIODException iie)
		{
			if(DicomConfig.createInstance().isLoggingOn())
			{
				DicomLogger.getLogger().log(iie.getMessage());
			}
			throw iie;
		}
	}
	/**
	 * Retrieves pre-initialized instance of Frame of Reference Module. Creates a new instance
	 * if no pre-existing module instance is available.If previously created instance is
	 * present then returns the same module instance.
	 * 
	 * @return FrameOfReferenceModule - instance of {@link FrameOfReferenceModule}.
	 */
	public FrameOfReferenceModule getFrameOfReferenceModule()
	{
		if(objFrameOfReferenceModule == null)
		{
			objFrameOfReferenceModule = new FrameOfReferenceModule(objIDataSet);
			return objFrameOfReferenceModule;
		}
		return objFrameOfReferenceModule;
	}
	/**
	 * Retrieves pre-initialized instance of Enhanced General Equipment Module. Creates a new instance
	 * if no pre-existing module instance is available.If previously created instance is
	 * present then returns the same module instance.
	 * 
	 * @return EnhancedGeneralEquipmentModule - instance of {@link EnhancedGeneralEquipmentModule}.
	 */
	public EnhancedGeneralEquipmentModule getEnhancedGeneralEquipmentModule()
	{
		if(objEnhancedGeneralEquipmentModule == null)
		{
			objEnhancedGeneralEquipmentModule = new EnhancedGeneralEquipmentModule(objIDataSet);
			return objEnhancedGeneralEquipmentModule;
		}
		return objEnhancedGeneralEquipmentModule;
	}
	/**
	 * Retrieves pre-initialized instance of Acquisition Context Module. Creates a new instance
	 * if no pre-existing module instance is available.If previously created instance is
	 * present then returns the same module instance.
	 * 
	 * @return AcquisitionContextModule - instance of {@link AcquisitionContextModule}.
	 */
	public AcquisitionContextModule getAcquisitionContextModule()
	{
		if(objAcquisitionContextModule == null)
		{
			objAcquisitionContextModule = new AcquisitionContextModule(objIDataSet);
			return objAcquisitionContextModule;
		}
		return objAcquisitionContextModule;
	}

	/**
	 * Retrieves pre-initialized instance of ICC Profile Module. Creates a new instance
	 * if no pre-existing module instance is available.If previously created instance is
	 * present then returns the same module instance.
	 * 
	 * @return ICCProfileModule - instance of {@link ICCProfileModule}.
	 */
	public ICCProfileModule getICCProfileModule() 
	{
		if(objICCProfileModule == null)
		{
			objICCProfileModule = new ICCProfileModule(objIDataSet);
			return objICCProfileModule;
		}
		return objICCProfileModule;
	}
	/**
	 * Retrieves pre-initialized instance of SOP Common Module. Creates a new instance
	 * if no pre-existing module instance is available.If previously created instance is
	 * present then returns the same module instance.
	 * 
	 * @return objSOPCommonModule - instance of {@link objSOPCommonModule}.
	 */
	public SOPCommonModule getSOPCommonModule()
	{
		if(objSOPCommonModule == null)
		{
			objSOPCommonModule = new SOPCommonModule(objIDataSet);
			return objSOPCommonModule;
		}
		return objSOPCommonModule;
	}
	/**
	 * Retrieves pre-initialized instance of Common Instance Reference Module. Creates a new instance
	 * if no pre-existing module instance is available.If previously created instance is
	 * present then returns the same module instance.
	 * 
	 * @return objSOPCommonModule - instance of {@link CommonInstanceReferenceModule}.
	 */
	public CommonInstanceReferenceModule getCommonInstanceReferenceModule()
	{
		if(objCommonInstanceReferenceModule == null)
		{
			objCommonInstanceReferenceModule = new CommonInstanceReferenceModule(objIDataSet);
			return objCommonInstanceReferenceModule;
		}
		return objCommonInstanceReferenceModule;
	}
	/**
	 * Retrieves pre-initialized instance of Corneal Topography Map Series Module. Creates a new instance
	 * if no pre-existing module instance is available.If previously created instance is
	 * present then returns the same module instance.
	 * 
	 * @return objCornealTopographyMapSeriesModule - instance of {@link CornealTopographyMapSeriesModule}.
	 */
	public CornealTopographyMapSeriesModule getCornealTopographyMapSeriesModule()
	{
		if(objCornealTopographyMapSeriesModule == null)
		{
			objCornealTopographyMapSeriesModule = new CornealTopographyMapSeriesModule(objIDataSet);
			return objCornealTopographyMapSeriesModule;
		}
		return objCornealTopographyMapSeriesModule;
	}
	/**
	 * Retrieves pre-initialized instance of General Image Module. Creates a new instance
	 * if no pre-existing module instance is available.If previously created instance is
	 * present then returns the same module instance.
	 * 
	 * @return GeneralImageModule - instance of {@link GeneralImageModule}.
	 */
	public GeneralImageModule getGeneralImageModule()
	{
		if(objGeneralImageModule== null)
		{
			objGeneralImageModule = new GeneralImageModule(objIDataSet);
			return objGeneralImageModule;
		}
		return objGeneralImageModule;
	}
	/**
	 * Retrieves pre-initialized instance of Palette Color Look up Table Module. Creates a new instance
	 * if no pre-existing module instance is available.If previously created instance is
	 * present then returns the same module instance.
	 * 
	 * @return PaletteColorLookupTableModule - instance of {@link PaletteColorLookupTableModule}.
	 */
	public PaletteColorLookupTableModule getPaletteColorLookupTableModule()
	{
		if(objPaletteColorLookupTableModule == null)
		{
			objPaletteColorLookupTableModule = new PaletteColorLookupTableModule(objIDataSet);
			return objPaletteColorLookupTableModule;
		}
		return objPaletteColorLookupTableModule;
	}
	/**
	 * Retrieves pre-initialized instance of Corneal Topography Map Image  Module. Creates a new instance
	 * if no pre-existing module instance is available.If previously created instance is
	 * present then returns the same module instance.
	 * 
	 * @return CornealTopographyMapImageModule - instance of {@link CornealTopographyMapImageModule}.
	 */
	public CornealTopographyMapImageModule getCornealTopographyMapImageModule()
	{
		if(objCornealTopographyMapImageModule == null)
		{
			objCornealTopographyMapImageModule = new CornealTopographyMapImageModule(objIDataSet);
			return objCornealTopographyMapImageModule;
		}
		return objCornealTopographyMapImageModule;
	}
	/**
	 * Retrieves pre-initialized instance of Corneal Topography Map Analysis Module . Creates a new instance
	 * if no pre-existing module instance is available.If previously created instance is
	 * present then returns the same module instance.
	 * 
	 * @return CornealTopographyMapAnalysisModule - instance of {@link CornealTopographyMapAnalysisModule}.
	 */
	public CornealTopographyMapAnalysisModule getCornealTopographyMapAnalysisModule() 
	{
		if(objCornealTopographyMapAnalysisModule == null)
		{
			objCornealTopographyMapAnalysisModule = new CornealTopographyMapAnalysisModule(objIDataSet);
			return objCornealTopographyMapAnalysisModule;
		}
		return objCornealTopographyMapAnalysisModule;
	}
	
	/**
	 * Retrieves pre-initialized instance of Ophthalmic Photography Acquisition Parameters Module . Creates a new instance
	 * if no pre-existing module instance is available.If previously created instance is
	 * present then returns the same module instance.
	 * 
	 * @return OphthalmicPhotographyAcquisitionParametersModule - instance of {@link OphthalmicPhotographyAcquisitionParametersModule}.
	 */
	public OphthalmicPhotographyAcquisitionParametersModule getOphthalmicPhotographyAcquisitionParametersModule() 
	{
		if(objOphthalmicPhotographyAcquisitionParametersModule == null)
		{
			objOphthalmicPhotographyAcquisitionParametersModule = new OphthalmicPhotographyAcquisitionParametersModule(objIDataSet);
			return objOphthalmicPhotographyAcquisitionParametersModule;
		}
		return objOphthalmicPhotographyAcquisitionParametersModule;
	}
	
	/**
	 * This method validates EnhancedMRColorImageIOD Modules according to the Module Table given in The DICOM Standard.
	 * The validate method fails if one of the mandatory modules are absent or any of the
	 * modules are invalid.The validate method also checks for conditional modules.
	 * 
	 * @return boolean - function status indicating success or failure.
	 * 
	 * @throws InvalidIODException - throws when IOD is invalid.
	 */
	public boolean validate() throws InvalidIODException
	{
		/*
		 * This condition calls ImageIOD class's validation which checks for common modules validation
		 */
		super.validate();

		/*
		 * This condition checks for EnhancedMRColorImageIOD Modules mandatory modules validation
		 */
		try
		{
			getCornealTopographyMapSeriesModule().validateModule();
			getFrameOfReferenceModule().validateModule();
			getEnhancedGeneralEquipmentModule().validateModule();
			getGeneralImageModule().validateModule();
			getPaletteColorLookupTableModule().validateModule();			
			getAcquisitionContextModule().validateModule();
			getSOPCommonModule().validateModule();
			getCornealTopographyMapImageModule().validateModule();
			getCornealTopographyMapAnalysisModule().validateModule();
			getOphthalmicPhotographyAcquisitionParametersModule().validateModule();
			/*
			 * User Defined condition		
			 */
			if(isModulePresent(CommonInstanceReferenceModule.objSingleCollection, objIDataSet))
			{
				getCommonInstanceReferenceModule().validateModule();
			}

			if(isModulePresent(SynchronizationModule.objSingleCollection, objIDataSet))
				getICCProfileModule().validateModule();
			
		}
		catch(ConditionFailedException cfe)
		{
			if(DicomConfig.createInstance().isLoggingOn())
				DicomLogger.getLogger().log(cfe.getMessage());
			throw new InvalidIODException(CORNEAL_TOPOGRAPHY_MAP_IOD,cfe);
		}
		catch(InvalidModuleException ime)
		{
			if(DicomConfig.createInstance().isLoggingOn())
				DicomLogger.getLogger().log(ime.getMessage());
			
				throw new InvalidIODException(CORNEAL_TOPOGRAPHY_MAP_IOD,ime);
		}
		return true;
	}

	/**
	 *  Dumps the Name of IOD,Module and corresponding Attributes of Module.
	 *  @param objIDicomStream - the Stream on which the Data is to be written.
	 *  @throws IOException - Exception is thrown indicating runtime failure of writing operation.
	 */
	public void dumpDICOMInfo(IDicomStream objIDicomStream) throws IOException
	{
		objIDicomStream.writeString(CORNEAL_TOPOGRAPHY_MAP_IOD + "\n");
		super.dumpDICOMInfo(objIDicomStream);
		
		
		objIDicomStream.writeString("\t" + getFrameOfReferenceModule().getClass().getSimpleName() + "\n");
		getFrameOfReferenceModule().dumpDICOMInfo(objIDicomStream);
		
		objIDicomStream.writeString("\t" + getEnhancedGeneralEquipmentModule().getClass().getSimpleName() + "\n");
		getEnhancedGeneralEquipmentModule().dumpDICOMInfo(objIDicomStream);

		objIDicomStream.writeString("\t" + getCornealTopographyMapSeriesModule().getClass().getSimpleName() + "\n");
		getCornealTopographyMapSeriesModule().dumpDICOMInfo(objIDicomStream);
		
		objIDicomStream.writeString("\t" + getGeneralImageModule().getClass().getSimpleName() + "\n");
		getGeneralImageModule().dumpDICOMInfo(objIDicomStream);

		objIDicomStream.writeString("\t" + getPaletteColorLookupTableModule().getClass().getSimpleName() + "\n");
		getPaletteColorLookupTableModule().dumpDICOMInfo(objIDicomStream);
		
		objIDicomStream.writeString("\t" + getCornealTopographyMapImageModule().getClass().getSimpleName() + "\n");
		getCornealTopographyMapImageModule().dumpDICOMInfo(objIDicomStream);

		objIDicomStream.writeString("\t" + getCornealTopographyMapAnalysisModule().getClass().getSimpleName() + "\n");
		getCornealTopographyMapAnalysisModule().dumpDICOMInfo(objIDicomStream);

		objIDicomStream.writeString("\t" + getOphthalmicPhotographyAcquisitionParametersModule().getClass().getSimpleName() + "\n");
		getOphthalmicPhotographyAcquisitionParametersModule().dumpDICOMInfo(objIDicomStream);

		objIDicomStream.writeString("\t" + getAcquisitionContextModule().getClass().getSimpleName() + "\n");
		getAcquisitionContextModule().dumpDICOMInfo(objIDicomStream);
		
		objIDicomStream.writeString("\t" + getICCProfileModule().getClass().getSimpleName() + "\n");
		getICCProfileModule().dumpDICOMInfo(objIDicomStream);
		
		objIDicomStream.writeString("\t" + getSOPCommonModule().getClass().getSimpleName() + "\n");
		getSOPCommonModule().dumpDICOMInfo(objIDicomStream);
		
		objIDicomStream.writeString("\t" + getCommonInstanceReferenceModule().getClass().getSimpleName() + "\n");
		getCommonInstanceReferenceModule().dumpDICOMInfo(objIDicomStream);
	}

	/**
	 * Checks whether the Module is present in the IOD or not.
	 * @param strModuleName String value of module name 
	 * @return boolean - true if the module is present in the IOD, else false is returned.
	 */
	public boolean isModulePresent(String strModuleName)
	{
		if(!super.isModulePresent(strModuleName))
		{
			if(strModuleName == null || strModuleName.equals(""))
				return false;
			
			 if(strModuleName.equalsIgnoreCase(EnumModuleNames.FRAME_OF_REFERENCE_MODULE.getValue()) && isModulePresent(FrameOfReferenceModule.objSingleCollection))
				return true;
			 
			else if(strModuleName.equalsIgnoreCase(EnumModuleNames.ENHANCED_GENERAL_EQUIPMENT_MODULE.getValue()) && isModulePresent(EnhancedGeneralEquipmentModule.objSingleCollection))
				return true;

			else if(strModuleName.equalsIgnoreCase(EnumModuleNames.CORNEAL_TOPOGRAPHY_MAP_SERIES_MODULE.getValue()) && isModulePresent(CornealTopographyMapSeriesModule.objSingleCollection))
				return true;	
			 
			else if(strModuleName.equalsIgnoreCase(EnumModuleNames.GENERAL_IMAGE_MODULE.getValue()) && isModulePresent(GeneralImageModule.objSingleCollection))
				return true;
			 
			else if(strModuleName.equalsIgnoreCase(EnumModuleNames.PALETTE_COLOR_LOOKUP_TABLE_MODULE.getValue()) && isModulePresent(PaletteColorLookupTableModule.objSingleCollection))
				return true;
			 
			else if(strModuleName.equalsIgnoreCase(EnumModuleNames.CORNEAL_TOPOGRAPHY_MAP_IMAGE_MODULE.getValue()) && isModulePresent(CornealTopographyMapImageModule.objSingleCollection))
				return true;
			 
			else if(strModuleName.equalsIgnoreCase(EnumModuleNames.CORNEAL_TOPOGRAPHY_MAP_ANALYSIS_MODULE.getValue()) && isModulePresent(CornealTopographyMapAnalysisModule.objSingleCollection))
				return true;
			 
			else if(strModuleName.equalsIgnoreCase(EnumModuleNames.OPHTHALMIC_TOMOGRAPHY_PARAMETERS_MODULE.getValue()) && isModulePresent(OphthalmicPhotographyAcquisitionParametersModule.objSingleCollection))
				return true;			
			else if(strModuleName.equalsIgnoreCase(EnumModuleNames.ACQUISITION_CONTEXT_MODULE.getValue()) && isModulePresent(AcquisitionContextModule.objSingleCollection))
				return true;
			else if(strModuleName.equalsIgnoreCase(EnumModuleNames.ICC_PROFILE_MODULE.getValue()) && isModulePresent(ICCProfileModule.objSingleCollection))
				return true;
			else if(strModuleName.equalsIgnoreCase(EnumModuleNames.SOP_COMMON_MODULE.getValue()) && isModulePresent(SOPCommonModule.objSingleCollection))
				return true;
			else if(strModuleName.equalsIgnoreCase(EnumModuleNames.COMMON_INSTANCE_REFERENCE_MODULE.getValue()) && isModulePresent(CommonInstanceReferenceModule.objSingleCollection))
				return true;
			else
			{
				if(DicomConfig.createInstance().isLoggingOn())
				{
					DicomLogger objDicomLogger = DicomLogger.getLogger();
					objDicomLogger.log(this.getClass().getName() + " : " +ResourceBundleWrapper.getValue("status","ModuleNotPresent",new Locale(DicomConfig.createInstance().getLocale())) + strModuleName);
				}
				return false;
			}
		}
		return true;
	}
}
