private static String findActualWritePattern(Class<?> type, String actualReadPattern, String override) {
if (override != null) {
return override;
}
WritePattern writePattern = type.getAnnotation(WritePattern.class);
if (writePattern != null && writePattern.value() != null) {
return writePattern.value();
}
return actualReadPattern;
}