String getNextField(String input, IntegerVar seppos, String fn, boolean last) throws DmcValueException {
String rc = null;
int start = seppos.intValue();
if ( (start+1) >= input.length())
throw (new DmcValueException("Missing value for field: " + fn + " in complex type: GPBField"));
if (last){
rc = input.substring(start+1);
}
else{
int pos = -1;
if (start > 0)
pos = input.indexOf(" ", start+1);
else
pos = input.indexOf(" ");
if (pos == -1)
throw (new DmcValueException("Missing value for field: " + fn + " in complex type: GPBField"));
while(pos < (input.length()-1)){
if ( input.charAt(pos+1) == ' ')
pos++;
else