@Override
    protected boolean isId(Path<?> arg) {
        return arg.getAnnotatedElement().isAnnotationPresent(Id.class);
    }
{@code MorphiaSerializer} extends {@link MongodbSerializer} with Morphia specific annotation handling

@author tiwe
querydsl-mongodb/src/main/java/com/querydsl/mongodb/morphia/MorphiaSerializer.java