Problem with Data Manipulator persistance

I was create the method’s toContainer and from to persistence of my DataManipulator offered to an ItemStack but when the server is restarted the data was lose:

The method’s are:

public DataContainer toContainer() {
    return super.toContainer()

public Optional<ToolData> from(DataContainer container) {
    Optional<Object> optObj = container.get(MyKeys.BUILDER_TOOL.getQuery());
    ToolData data;
    if (optObj.isPresent()) {
    data = new ToolDataImpl(AltToolTypes.valueOf((String)optObj.get()));
    } else {
        data = new ToolDataImpl();
    return Optional.of(data);