public static double[] splitStringToDouble(String source, String sepChar)
    {
	if (Common.notNullOrEmpty(source) && !source.equals("") && !sepChar.equals(""))
	{
	    try
	    {
		String[] subStrings = source.split(sepChar);

		if(subStrings.length < 1){ return null; }
		else if(subStrings.length == 1)
		{
		    // if the array has only one element, it may not have been
		    // possible to split the string, in which case the call to 
		    // split will return an array containing the source string.
		    // As we don't want the source string to be returned in
		    // the array, we explicitly return null.
		    if(subStrings[0].equals(source))
			return null;
		}		

		double[] values = new double[subStrings.length];

		for(int i = 0; i < values.length;i++)
		    values[i] = Double.parseDouble(subStrings[i]);

		return values;
	    }
	    catch (Exception e){ return null; }
	}
	else{ return null; }
    }