in tomee-patch-core/src/main/java/org/apache/tomee/patch/core/Replace.java [26:31]
public Replace prefix(final String from, final String to) {
if (text.startsWith(from)) {
text = text.replace(from, to);
}
return this;
}