Verify that after the split there are actually 2 parts and if not throw aTypeDecodingException.  This way an IndexOutOfBounds exception isn't thrown when trying to pass in parts[1].