final String prefix = info.properties.getProperty(TABLE_PREFIX);
if (prefix != null) {
final String mapping = info.properties.getProperty(OPENJPA_METADATA_REPOSITORY);
if (mapping != null && !"org.apache.openjpa.jdbc.meta.MappingRepository".equals(mapping)) {
throw new OpenEJBRuntimeException("can't honor table prefixes since you provided a custom mapping repository: " + mapping);
}
info.properties.setProperty(OPENJPA_METADATA_REPOSITORY, PREFIX_METADATA_REPOSITORY + "(prefix=" + prefix + ")");
if (!info.properties.containsKey(OPENJPA_SEQUENCE)) {
info.properties.setProperty(OPENJPA_SEQUENCE, PREFIX_SEQUENCE + "(prefix=" + prefix + ")");
} else {