class ProcessVariableReader {

    public static String getProcessVariableName(Property p) {
        String name = p.getName();
        // legacy uses ID instead of name
        return name == null || name.isEmpty() ? p.getId() : name;
    }

}