Implement parseInstanceId