try {
Integer rpCode = (Integer) getFieldValue("RPCODE");
MarkerExt[] ams = vp.getAssignedMarkers("EPRECORDPOINT", rpCode);
String result = null;
for (int i = 0; i < ams.length; i++) {
MarkerExt m = ams[i];
if (m.getName().startsWith(rootMarker)) {
String[] parts = m.getName().split(" => ");
if (parts.length > 2) {
result = parts[parts.length - 2];
} else {
result = parts[parts.length - 1];
}