ExtDirectMethodDocumentation documentation) {
if (!documentation.value().isEmpty()) {
ActionDoc actionDoc = new ActionDoc(getAction(), documentation.value(),
documentation.author(), documentation.version(),
documentation.deprecated());
ExtDirectDocParameters docParameters = documentation.parameters();
if (null != docParameters) {
String[] params = docParameters.params();
String[] descriptions = docParameters.descriptions() == null ? new String[params.length]
: docParameters.descriptions();
if (params.length == descriptions.length) {
for (int i = 0; i < params.length; i++) {
actionDoc.getParameters().put(
params[i],
descriptions[i] == null ? "No description"